﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IBLL
{
    public interface IShareBLL
    {
        //传入用户id、图片id和shareDescription设置分享
        bool sharePhoto(int userId, int photoId, string shareDescription);


        //传入图片id获取是否存在分享
        bool shareExist(int photoId);


        //删除给定分享
        bool deleteShare(int shareId);


        //删除所有分享
        bool deleteAllShare(int photoId);


        //获取所有分享
        List<Model.Share> getAllShareByUserID(int userId);


        //获取所有分享
        List<Model.Share> getAllShareByPhotoId(int photoId);


        //获取所有分享
        List<Model.Share> getFollowShare(int userId);
    }
}
